package cron.core;

/**
 * @author : willian fu
 * @version : 1.0
 * @date : 2021/2/25 0025 14:55
 */
public enum ResourceLoadType {
    //从网络加载
    HTTP,

    //从本地加载
    LOCAL;

    public String getLoadURL(String url){
        if (this.equals(HTTP)){
            return "jar:" + url + "!/";
        }else if (this.equals(LOCAL)){
            return "jar:file:/" + url + "!/";
        }
        throw new RuntimeException("no this type");
    }

    /*public static Resource getType(String url){

    }*/
}
